package com.starlight.flower_server.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.starlight.flower_server.domain.TotalData;
import com.starlight.flower_server.domain.flowerKnowledge.cqrs.FlowerKnowledgePageQuery;
import com.starlight.flower_server.domain.flowerKnowledge.data.FlowerKnowledgeData;
import com.starlight.flower_server.infrastructure.entity.FlowerKnowledge;

import java.util.List;

/**
 * @Author yfy2001
 * @date 2023/4/5 15:01
 */
public interface FlowerKnowledgeService {
    FlowerKnowledge queryFlowerKnowledgeDetailById(Long id);

    Integer logicDeleteFlowerKnowledgeById(Long id);

    Integer insertFlowerKnowledge(FlowerKnowledge flowerKnowledge);

    Integer modifyFlowerKnowledge(FlowerKnowledge flowerKnowledge);

    IPage<FlowerKnowledgeData> queryFlowerKnowledgeList(FlowerKnowledgePageQuery query);

    TotalData<FlowerKnowledgeData> queryAllFlowerKnowledgeData();

    TotalData<FlowerKnowledgeData> queryFlowerKnowledgeTotalCount();

    List<FlowerKnowledgeData> queryRandomFlowerKnowledgeList(Integer count);
}
